package com.miplus.ccrm.report.feign;

import com.miplus.ccrm.common.CmdResVo;
import com.miplus.ccrm.common.R;
import com.miplus.ccrm.report.controller.vo.evt.AiCallRetVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "${ccrm.core.servicename}", url = "${ccrm.core.serviceurl}")
public interface ICoreFeign {
    @PostMapping("/crdt/saveAiListResult")
    R<CmdResVo> saveAiListResult(@RequestBody AiCallRetVo aiCallRetVo, @RequestHeader("Authorization") String token);

    @PostMapping("/fi/addImportHist")
    R<CmdResVo> addImportHist(@RequestBody FiImpAddVo addVo, @RequestHeader("Authorization") String token);
}
